package com.jxc.model.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 公告
 * 
 * @author Tino
 * 
 */
@Entity
@Table(name = "QTMK_ANNOUNCEMENT")
public class Announcement extends IdEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7171613407862894226L;
	/**
	 * 公告内容
	 * 
	 */
	private String content;
	/**
	 * 发布时间
	 * 
	 */
	private Date publishDate;
	/**
	 * 发布人
	 * 
	 */
	private User user;
	/**
	 * 公告结束时间
	 * 
	 */
	private Date endDate;
	/**
	 * 备注
	 * 
	 */
	private String remark;
	/**
	 * 是否删除 
	 */
	private Boolean isDeleted;

	@Column(name = "CONTENT", nullable = false, length = 254)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "PUBLISH_DATE")
	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_ID")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Column(name = "END_DATE")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "REMARK", length = 254)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "ISDELETED")
	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

}
